


<?php
	echo $tNGs->getErrorMsg();
?>
<div class="KT_tng">
  <h1>
    <?php 
// Show IF Conditional region1 
if (@$_GET['id_configuracion'] == "") {
?>
      <?php echo NXT_getResource("Insert_FH"); ?>
      <?php 
// else Conditional region1
} else { ?>
      <?php echo NXT_getResource("Update_FH"); ?>
      <?php } 
// endif Conditional region1
?>
    Configuracion </h1>
  <div class="KT_tngform">
    <form method="post" id="form1" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>">
      <?php $cnt1 = 0; ?>
      <?php
  while (!$rsconfiguracion->EOF) { 
?>
        <?php $cnt1++; ?>
        <?php 
// Show IF Conditional region1 
if (@$totalRows_rsconfiguracion > 1) {
?>
          <h2><?php echo NXT_getResource("Record_FH"); ?> <?php echo $cnt1; ?></h2>
          <?php } 
// endif Conditional region1
?>
        <table cellpadding="2" cellspacing="0" class="KT_tngtable">
          <tr>
            <td class="KT_th"><label for="id_sede_<?php echo $cnt1; ?>">Id_sede:</label></td>
            <td><select name="id_sede_<?php echo $cnt1; ?>" id="id_sede_<?php echo $cnt1; ?>">
              <option value=""><?php echo NXT_getResource("Select one..."); ?></option>
              <?php
  while(!$reco_data->EOF){
?>
              <option value="<?php echo $reco_data->Fields('id_sede')?>"<?php if (!(strcmp($reco_data->Fields('id_sede'), $rsconfiguracion->Fields('id_sede')))) {echo "SELECTED";} ?>><?php echo $reco_data->Fields('nombre_sede')?></option>
              <?php
    $reco_data->MoveNext();
  }
  $reco_data->MoveFirst();
?>
            </select>
                <?php echo $tNGs->displayFieldError("configuracion", "id_sede", $cnt1); ?> </td>
          </tr>
          <tr>
            <td class="KT_th"><label for="id_deweyconf_<?php echo $cnt1; ?>">Id_deweyconf:</label></td>
            <td><select name="id_deweyconf_<?php echo $cnt1; ?>" id="id_deweyconf_<?php echo $cnt1; ?>">
              <option value=""><?php echo NXT_getResource("Select one..."); ?></option>
              <?php
  while(!$reco_dewey->EOF){
?>
              <option value="<?php echo $reco_dewey->Fields('id_deweyconf')?>"<?php if (!(strcmp($reco_dewey->Fields('id_deweyconf'), $rsconfiguracion->Fields('id_deweyconf')))) {echo "SELECTED";} ?>><?php echo $reco_dewey->Fields('tipo_deweyconf')?></option>
              <?php
    $reco_dewey->MoveNext();
  }
  $reco_dewey->MoveFirst();
?>
            </select>
                <?php echo $tNGs->displayFieldError("configuracion", "id_deweyconf", $cnt1); ?> </td>
          </tr>
          <tr>
            <td class="KT_th"><label for="id_isbnconf_<?php echo $cnt1; ?>">Id_isbnconf:</label></td>
            <td><select name="id_isbnconf_<?php echo $cnt1; ?>" id="id_isbnconf_<?php echo $cnt1; ?>">
              <option value=""><?php echo NXT_getResource("Select one..."); ?></option>
              <?php
  while(!$reco_isbn->EOF){
?>
              <option value="<?php echo $reco_isbn->Fields('id_isbnconf')?>"<?php if (!(strcmp($reco_isbn->Fields('id_isbnconf'), $rsconfiguracion->Fields('id_isbnconf')))) {echo "SELECTED";} ?>><?php echo $reco_isbn->Fields('tipo_isbnconf')?></option>
              <?php
    $reco_isbn->MoveNext();
  }
  $reco_isbn->MoveFirst();
?>
            </select>
                <?php echo $tNGs->displayFieldError("configuracion", "id_isbnconf", $cnt1); ?> </td>
          </tr>
          <tr>
            <td class="KT_th"><label for="id_reglasistema_<?php echo $cnt1; ?>">Id_reglasistema:</label></td>
            <td><select name="id_reglasistema_<?php echo $cnt1; ?>" id="id_reglasistema_<?php echo $cnt1; ?>">
              <option value=""><?php echo NXT_getResource("Select one..."); ?></option>
              <?php
  while(!$reco_regla_sistema->EOF){
?>
              <option value="<?php echo $reco_regla_sistema->Fields('id_reglasistema')?>"<?php if (!(strcmp($reco_regla_sistema->Fields('id_reglasistema'), $rsconfiguracion->Fields('id_reglasistema')))) {echo "SELECTED";} ?>><?php echo $reco_regla_sistema->Fields('describe_reglasistema')?></option>
              <?php
    $reco_regla_sistema->MoveNext();
  }
  $reco_regla_sistema->MoveFirst();
?>
            </select>
                <?php echo $tNGs->displayFieldError("configuracion", "id_reglasistema", $cnt1); ?> </td>
          </tr>
          <tr>
            <td class="KT_th"><label for="describe_configuracion_<?php echo $cnt1; ?>">Describe_configuracion:</label></td>
            <td><input type="text" name="describe_configuracion_<?php echo $cnt1; ?>" id="describe_configuracion_<?php echo $cnt1; ?>" value="<?php echo KT_escapeAttribute($rsconfiguracion->Fields('describe_configuracion')); ?>" size="32" maxlength="100" />
                <?php echo $tNGs->displayFieldHint("describe_configuracion");?> <?php echo $tNGs->displayFieldError("configuracion", "describe_configuracion", $cnt1); ?> </td>
          </tr>
          <tr>
            <td class="KT_th"><label for="fecha_configuracion_<?php echo $cnt1; ?>">Fecha_configuracion:</label></td>
            <td><input name="fecha_configuracion_<?php echo $cnt1; ?>" id="fecha_configuracion_<?php echo $cnt1; ?>" value="<?php echo KT_formatDate($rsconfiguracion->Fields('fecha_configuracion')); ?>" size="10" maxlength="22" wdg:subtype="Calendar" wdg:mask="<?php echo date('d-m-Y'); ?>" wdg:type="widget" wdg:mondayfirst="false" wdg:singleclick="false" wdg:restricttomask="no" wdg:readonly="true" />
                <?php echo $tNGs->displayFieldHint("fecha_configuracion");?> <?php echo $tNGs->displayFieldError("configuracion", "fecha_configuracion", $cnt1); ?> </td>
          </tr>
          <tr>
            <td class="KT_th"><label for="estado_configuracion_<?php echo $cnt1; ?>">Estado_configuracion:</label></td>
            <td><input type="text" name="estado_configuracion_<?php echo $cnt1; ?>" id="estado_configuracion_<?php echo $cnt1; ?>" value="<?php echo KT_escapeAttribute($rsconfiguracion->Fields('estado_configuracion')); ?>" size="4" />
                <?php echo $tNGs->displayFieldHint("estado_configuracion");?> <?php echo $tNGs->displayFieldError("configuracion", "estado_configuracion", $cnt1); ?> </td>
          </tr>
          <tr>
            <td class="KT_th"><label for="nombresitio_configuracion_<?php echo $cnt1; ?>">Nombresitio_configuracion:</label></td>
            <td><input type="text" name="nombresitio_configuracion_<?php echo $cnt1; ?>" id="nombresitio_configuracion_<?php echo $cnt1; ?>" value="<?php echo KT_escapeAttribute($rsconfiguracion->Fields('nombresitio_configuracion')); ?>" size="32" maxlength="255" />
                <?php echo $tNGs->displayFieldHint("nombresitio_configuracion");?> <?php echo $tNGs->displayFieldError("configuracion", "nombresitio_configuracion", $cnt1); ?> </td>
          </tr>
          <tr>
            <td class="KT_th"><label for="email_configuracion_<?php echo $cnt1; ?>">Email_configuracion:</label></td>
            <td><input type="text" name="email_configuracion_<?php echo $cnt1; ?>" id="email_configuracion_<?php echo $cnt1; ?>" value="<?php echo KT_escapeAttribute($rsconfiguracion->Fields('email_configuracion')); ?>" size="32" maxlength="255" />
                <?php echo $tNGs->displayFieldHint("email_configuracion");?> <?php echo $tNGs->displayFieldError("configuracion", "email_configuracion", $cnt1); ?> </td>
          </tr>
          <tr>
            <td class="KT_th"><label for="version_configuracion_<?php echo $cnt1; ?>">Version_configuracion:</label></td>
            <td><input type="text" name="version_configuracion_<?php echo $cnt1; ?>" id="version_configuracion_<?php echo $cnt1; ?>" value="<?php echo KT_escapeAttribute($rsconfiguracion->Fields('version_configuracion')); ?>" size="10" maxlength="10" />
                <?php echo $tNGs->displayFieldHint("version_configuracion");?> <?php echo $tNGs->displayFieldError("configuracion", "version_configuracion", $cnt1); ?> </td>
          </tr>
          <tr>
            <td class="KT_th"><label for="credito_configuracion_<?php echo $cnt1; ?>">Credito_configuracion:</label></td>
            <td><input type="text" name="credito_configuracion_<?php echo $cnt1; ?>" id="credito_configuracion_<?php echo $cnt1; ?>" value="<?php echo KT_escapeAttribute($rsconfiguracion->Fields('credito_configuracion')); ?>" size="2" maxlength="2" />
                <?php echo $tNGs->displayFieldHint("credito_configuracion");?> <?php echo $tNGs->displayFieldError("configuracion", "credito_configuracion", $cnt1); ?> </td>
          </tr>
          <tr>
            <td class="KT_th"><label for="mac_configuracion_<?php echo $cnt1; ?>">Mac_configuracion:</label></td>
            <td><input type="text" name="mac_configuracion_<?php echo $cnt1; ?>" id="mac_configuracion_<?php echo $cnt1; ?>" value="<?php echo KT_escapeAttribute($rsconfiguracion->Fields('mac_configuracion')); ?>" size="32" maxlength="255" />
                <?php echo $tNGs->displayFieldHint("mac_configuracion");?> <?php echo $tNGs->displayFieldError("configuracion", "mac_configuracion", $cnt1); ?> </td>
          </tr>
        </table>
        <input type="hidden" name="kt_pk_configuracion_<?php echo $cnt1; ?>" class="id_field" value="<?php echo KT_escapeAttribute($rsconfiguracion->Fields('kt_pk_configuracion')); ?>" />
        <?php
    $rsconfiguracion->MoveNext(); 
  }
?>
      <div class="KT_bottombuttons">
        <div>
          <?php 
      // Show IF Conditional region1 
      if (@$_GET['id_configuracion'] == "") {
      ?>
            <input type="submit" name="KT_Insert1" id="KT_Insert1" value="<?php echo NXT_getResource("Insert_FB"); ?>" />
            <?php 
      // else Conditional region1
      } else { ?>
            <input type="submit" name="KT_Update1" value="<?php echo NXT_getResource("Update_FB"); ?>" />
            <input type="submit" name="KT_Delete1" value="<?php echo NXT_getResource("Delete_FB"); ?>" onclick="return confirm('<?php echo NXT_getResource("Are you sure?"); ?>');" />
            <?php } 
      // endif Conditional region1
      ?>
          <input type="button" name="KT_Cancel1" value="<?php echo NXT_getResource("Cancel_FB"); ?>" onclick="return UNI_navigateCancel(event, '../includes/nxt/back.php')" />
        </div>
      </div>
    </form>
  </div>
  <br class="clearfixplain" />
</div>
<p>&nbsp;</p>